package com.tm.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(value = "角色实体类",description="角色实体类")
public class Role {

    @ApiModelProperty(value = "主键",required = false ,dataType = "int")
    @TableId(type = IdType.AUTO)
    @ExcelProperty(value = {"人员信息","编号"},order = 1)
    private Integer id;//		int(10)	主键

    @ApiModelProperty(value = "人物角色名称",required = false ,dataType = "String")
    @ExcelProperty(value = {"人员信息","人物角色名称"},order = 2)
    private String name;//	varchar(50)	人物角色名称

    @ApiModelProperty(value = "状态",required = false ,dataType = "Integer")
    @ExcelProperty(value = {"人员信息","状态"},order = 3)
    private Integer status;//	int(1)	状态：1启用角色2禁用角色

    @ApiModelProperty(value = "备注角色",required = false ,dataType = "String")
    @ExcelProperty(value = {"人员信息","备注角色"},order = 4)
    private String remark;//	varchar(2000)	备注角色

    @ApiModelProperty(value = "创建人物角色时间",required = false ,dataType = "Date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ExcelProperty(value = {"人员信息","创建人物角色时间"},order = 5)
    @com.alibaba.excel.annotation.format.DateTimeFormat("yyyy-MM-dd HH:mm:ss" )

    private Date createDate;//	datetime	创建人物角色时间
    @ApiModelProperty(value = "修改人物角色时间",required = false ,dataType = "Date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ExcelProperty(value = {"人员信息","修改人物角色时间"},order = 6)
    @com.alibaba.excel.annotation.format.DateTimeFormat("yyyy-MM-dd HH:mm:ss" )
    private Date updateDate;//	datetime	修改人物角色时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}
